package xyz.hubery.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@ApiModel("更新账户余额的传输对象")
@Data
public class UpdateAccountDTO implements Serializable {

    @ApiModelProperty("买方用户ID")
    private Long buyUserId;
    @ApiModelProperty("卖方用户ID")
    private Long sellUserId;

    @ApiModelProperty("买方花费币种ID")
    private Long buyCoinId;
    @ApiModelProperty("卖方花费币种ID")
    private Long sellCoinId;

    @ApiModelProperty("成交价格")
    private BigDecimal price;
    @ApiModelProperty("成交量")
    private BigDecimal volume;
    @ApiModelProperty("成交额")
    private BigDecimal turnover;

    @ApiModelProperty("买方手续费率")
    private BigDecimal buyFeeRate;
    @ApiModelProperty("卖方手续费率")
    private BigDecimal sellFeeRate;

    /**
     * 1: 未完成，2已完成（此时需要将剩余冻结全部解冻）
     */
    @ApiModelProperty("买方委托单状态")
    private Byte buyStatus;
    @ApiModelProperty("卖方委托单状态")
    private Byte sellStatus;


    @ApiModelProperty("买方冻结资金")
    private BigDecimal buyFreeze;
    @ApiModelProperty("卖方冻结资金")
    private BigDecimal sellFreeze;

}
